package 基础数学;

/**
 * @author 帅小伙
 * @date 2021/12/27
 * @description
 */
public class Demo01JZ65不用加减乘除做加法 {



    public int Add(int num1,int num2) {
        while (num2!=0) {
            int temp = num1^num2;
            num2 = (num1&num2)<<1;
            num1 = temp;
        }
        return num1;

    }
}
